"""hospitaloa URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from Oa_system import views
from announcements import urls as announcements_url
from Administrative_office_system.settings import MEDIA_ROOT
from personal_center import urls as center_url
from technological import urls as tech_url
from system_setup import urls as sys_url
from correspondence import urls as corr_url
from django.views.static import serve
from django.conf.urls import url
from administrative import urls as adminis_url
from ios_api import urls as iso_url
from Oa_system.views import *
from finance import urls as finance_url
from forum import urls as forum_url
from document_management import url as doc_url
from personnel import urls as per_url
from back_management import urls as back_url
from logistics import urls as logistics_url
from medical_ethics import urls as medical_url
from that_person_center import urls as that_center
from NewFlowLogic import urls as logic
from supervision_inspection import urls as inspection
from infrastructure_process import urls as infrastructure
from payment_management import urls as payment
from union_process import urls as union

handler500 = 'Oa_system.views.server_error'
handler404 = 'Oa_system.views.page_not_found'


urlpatterns = [
    path('', include(center_url)),
    path('announcements/', include(announcements_url)),
    path('personal-center/', include(center_url)),
    path('back-management/', include(back_url)),
    path('technological/', include(tech_url)),
    path('system-setup/', include(sys_url)),
    path('correspondence/', include(corr_url)),
    path('administrative/', include(adminis_url)),
    path('ios_api/', include(iso_url)),
    path('finance/', include(finance_url)),
    path('admin/', admin.site.urls),
    url(r'^media/(?P<path>.*)$', serve, {'document_root': MEDIA_ROOT}),
    path('forum/', include(forum_url)),
    path('ueditor/', include('DjangoUeditor.urls')),
    path('document-management/', include(doc_url)),
    path('personnel/', include(per_url)),
    path('logistics/', include(logistics_url)),
    path('medical-ethics/', include(medical_url)),
    path('that-center/', include(that_center)),
    path('new-flow-logic/', include(logic)),
    path('supervision-inspection/', include(inspection)),
    path('infrastructure-process/', include(infrastructure)),
    path('payment-management/', include(payment)),
    path('union-process/', include(union)),
]
